<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="../style/ucs.css">
    <link rel="stylesheet" href="../content/font/iconfont.css">
    <link rel="stylesheet" href="../style/theme.css">
</head>
<body>
    <div id="giraffe"></div>
    <script type="text/javascript" src="../../dist/libs/u-eventhub.js"></script>
    <script type="text/javascript" src="../../dist/libs/engine.js"></script>
    <script type="text/javascript" src="../../dist/ucsmy-ui.js"></script>

    <script type="text/javascript">
        //链接
        var URLDM = new UDM({
            goBack:"../MyInvest/index.html"   //返回
        });

        /*项目详情信息*/
        var ProDetailDM = new UDM({
            value:{
                ProjectName:"",
                ProjectType:1,
                InvestmentInterest:0,
                Duration:0,
                ProjectAmount:0,
                PayTime:"",
                PayAmount:0,
                ValueBegin:"",
                RepayBegin:"",
                IncomeAmount:0,
                IsExclusivePublic:true,
                IsRefund:0,
                CallbackAccount:{
                    AccountNo:"",
                    BankLogo:"bank-mianyang"
                },
                UserCenterOrderStatus:{
                    status:"",
                    className:"tag-grey"
                },
                ProjectMessage:{
                    status:"",//项目状态
                    money:{//金额
                        key:"",
                        value:0
                    },
                    time:{//时间
                        key:"",
                        value:""
                    },
                    tips:""
                }
            }
        });
        //个人实名信息
        var realNameInfoDM = new UDM({
            value:{
                AccType:0,
                Mobile:"",
                IsBindMobile:true,//是否绑定手机
                BindMobileUrl:"../UserInfo/index.html",//绑定手机链接
                IsBindIDCard:false,//是否验证身份
                BindIDCardUrl:"../UserInfo/index.html",//验证身份链接
                IsBindBankCard:false,//是否绑卡
                BindBankCardUrl:"../MyBankCard/index.html",//绑卡链接
                Current:"InvestList",  //当前选中菜单
                InvestAccountUrl:"../MyAccount/index.html",//投资账户总览链接
                InvestListUrl:"../MyInvest/index.html",//投资记录链接
                MyBankCardUrl:"../MyBankCard/index.html",//我的银行卡链接
                InvestInfoUrl:"../UserInfo/index.html",//投资个人信息
                InvestMessageUrl:"../UserMessageCenter/index.html",//投资消息中心
                FinanceAccountUrl:"../FinanceAccount/index.html",//融资账户总览链接
                FinanceListUrl:"../FinanceList/index.html",//融资记录链接
                FinanceAccountInfoUrl:"../AccountInfo/index.html",//融资账号信息
                FinanceMessageUrl:"../CompanyMessageCenter/index.html"//融资消息中心
            }
        });
        //导出PDF
        var exportPDF = new UDM({
            onClick:function(html){
                console.log(html);
            }
        });
        //打印
        var printBtn = new UDM({
            onClick:function(){
                console.log("打印");
            }
        });

        /*ajax请求数据*/
        var ajaxFn = function(){
            /*项目详情数据填充*/
            var detail = {
                ProjectName:"商票理财【201600021】",
                ProjectType:1,
                InvestmentInterest:6.59,
                Duration:40,
                ProjectAmount:4323000.00,
                PayTime:"2016-08-09 10:04:53.15",
                PayAmount:1000000.00,
                ValueBegin:"2016-08-13",
                RepayBegin:"2016-09-22",
                IncomeAmount:1000,
                IsExclusivePublic:true,
                IsRefund:0,
                CallbackAccount:{
                    AccountNo:"6220******2222",
                    BankLogo:"bank-mianyang"
                },
                UserCenterOrderStatus:20
            };
            ProDetailDM.setValue(detail);

            /*个人实名信息*/
            var realName = {
                AccType:0,
                Mobile:"155****2132",
                IsBindMobile:true,//是否绑定手机
                BindMobileUrl:"../UserInfo/index.html",//绑定手机链接
                IsBindIDCard:false,//是否验证身份
                BindIDCardUrl:"../UserInfo/index.html",//验证身份链接
                IsBindBankCard:false,//是否绑卡
                BindBankCardUrl:"../MyBankCard/index.html",//绑卡链接
                Current:"InvestList",  //当前选中菜单
                InvestAccountUrl:"../MyAccount/index.html",//投资账户总览链接
                InvestListUrl:"../MyInvest/index.html",//投资记录链接
                MyBankCardUrl:"../MyBankCard/index.html",//我的银行卡链接
                InvestInfoUrl:"../UserInfo/index.html",//投资个人信息
                InvestMessageUrl:"../UserMessageCenter/index.html",//投资消息中心
                FinanceAccountUrl:"../FinanceAccount/index.html",//融资账户总览链接
                FinanceListUrl:"../FinanceList/index.html",//融资记录链接
                FinanceAccountInfoUrl:"../AccountInfo/index.html",//融资账号信息
                FinanceMessageUrl:"../CompanyMessageCenter/index.html"//融资消息中心
            };
            realNameInfoDM.setValue(realName);
        };

        var PageDM = {
            URL:URLDM,
            ProDetail:ProDetailDM,
            realNameInfo: realNameInfoDM,
            exportPDF:exportPDF,
            printBtn:printBtn
        };

        UEventHub.on('pageLoad',function(){
            ajaxFn();
        });
    </script>
<script type="text/javascript" src="../PrintInvestDetail\index.js"></script></body>
</html>